//引入echarts提供的所有的方法 放在$echarts上
import * as $echarts from "echarts";
//引入vue-echarts,暴露出一个组件,我们一会需要全局注册
import vueEcharts from "vue-echarts";
//引入App的类型
import type { App } from "vue";

//定义一个插件,
const VueEcharts = (app: App) => {
  app.component("v-chart", vueEcharts);
};

//暴露
export { $echarts, VueEcharts };


